package ex.vo;

import java.text.SimpleDateFormat;

public class User {

	private Integer userId;
	
	private String name;
	
	private String url;
	
	private Long timestamp;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public User() {
	}

	@Override
	public String toString() {
		SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return "User{" +
				"userId=" + userId +
				", name='" + name + '\'' +
				", url='" + url + '\'' +
				", timestamp=" + dateformat.format(timestamp) +
				'}';
	}
}
